package com.sg.controller.pbff;

import com.sg.service.biz.pbff.OperationsDeploymentService;
import com.sg.dto.biz.pbff.req.*;
import com.sg.dto.biz.pbff.res.*;
import com.sg.common.ro.OkrResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：
 * @version 1.0
 * @date ：
 */
@Api(value = "OperationsDeployment", tags = {"OperationsDeployment"})
@RestController
// @RequestMapping("/poms/operationsDeployment/")
public class OperationsDeploymentController {

    @Autowired
    OperationsDeploymentService operationsDeploymentService;

    /**
     * B2执行私有化分离数据(管理)
     * gen by moon at 6/12/2023, 12:00:44 PM
     */
    @PostMapping("/oms/mgt/operationsDeployment/implementPrivatizationAndSeparationData")
    @ApiOperation(value = "B2执行私有化分离数据(管理)", response = OkrResult.class)
    public OkrResult<BffImplementPrivatizationAndSeparationDataRespDto> implementPrivatizationAndSeparationData(@RequestBody(required = false) @Validated BffImplementPrivatizationAndSeparationDataReqDto reqDTO) {
        return OkrResult.success(operationsDeploymentService.implementPrivatizationAndSeparationData(reqDTO));
    }

    /**
     * B3执行清洗垃圾评价数据(管理)
     * gen by moon at 6/12/2023, 12:16:46 PM
     */
    @PostMapping("/oms/mgt/operationsDeployment/implementCleaningWasteEvaluationData")
    @ApiOperation(value = "B3执行清洗垃圾评价数据(管理)", response = OkrResult.class)
    public OkrResult<BffImplementCleaningWasteEvaluationDataRespDto> implementCleaningWasteEvaluationData(@RequestBody(required = false) @Validated BffImplementCleaningWasteEvaluationDataReqDto reqDTO) {
        return OkrResult.success(operationsDeploymentService.implementCleaningWasteEvaluationData(reqDTO));
    }
}
